<ul class="breadcrumb">
  <li><a href="/">首页</a> <span class="divider">/</span></li>
  <li><a href="/students">学生信息</a> <span class="divider">/</span></li>
  <li><%= link_to @student.name, @student %> <span class="divider">/</span></li>
  <li class="active">成绩信息</li>
</ul>
<script type="text/javascript">
    $(document).ready(function() {
        $("table").tablesorter({
            sortList: [
                [1,1]
            ]
        });
    })
</script>
<table class="zebra-striped bordered-table">
  <thead>
  <tr>
    <th>考试</th>
    <th>时间</th>
    <th>成绩</th>
  </tr>
  </thead>
  <tbody>
  <% @scores.each do |score| %>
      <tr class="<%= !score.mark.nil? && score.mark>=60 ? "y" :"n" %>">
        <td><%= link_to truncate(score.exam.title,:length=>30), "/scores?eid="<<score.exam.id.to_s %></td>
        <td><%= score.exam.ctime.strftime("%Y-%m-%d  %H:%M") %></td>
        <td><%= score.mark %></td>
      </tr>
  <% end %>
  </tbody>
</table>